﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Document_Label> list = v.data("list") as List<Document_Label>; %>

<%if (list.Count > 0){ %>
<% foreach (Document_Label row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.labelname %>" <%if (bllPowerGroupService.powercheck("article", "recomedit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('<%=row.labelname %>_{recommanage_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.RecomController().RecomEdit, row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'recommedit<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="8%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="10%"><%=row.Id %></td>
			<td width="12%"><%=row.lng %></td>
			<td width="40%"><%=row.labelname %></td>
			<td width="20%"><%=row.modelname %></td>
			<td width="10%" id="infotype">
				<%if (bllPowerGroupService.powercheck("article", "recomedit", modelpowergroup)) { %>
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('<%=row.labelname %>_{recommanage_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.RecomController().RecomEdit, row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'recommedit<%=row.Id %>',self.frameElement.getAttribute('name'));" id="recommedit<%=row.Id %>" href="#body" title="<%=row.labelname %>_{recommanage_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>